﻿@model int

@{
    ResFile = "cms_Content";
    ViewBag.Title = _("Add new content");
    Layout = "~/admin/Templates/TelerikAdministration.cshtml";
}

<p><a class="b-back-link" href="/admin/cmscontenttype/edit/@Model"><i class="b-icon"></i>@_("Show all '{0}' items", ViewBag.ContentTypeName)</a></p>

<h1 class="g-clear">
    <i class="b-icon b-icon_h b-icon_h_contenttypes"></i>
	<span class="b-overflow">
		@_("{0} - content details", ViewBag.ContentTypeName)
		<span class="b-intro-text">@_("Here you can edit content item details")</span>
	</span>
</h1>



@using (Html.BeginForm()) 
{
    Html.RenderAction("contentdetails", "cmscontent", new { id = 0, contenttypeid = @Model });    
    Html.ValidationSummary();
    <div class="b-form__button">
        <input class="b-button" id="btnAdd" name="btnAdd" type="submit" value="@_("Add content")" />
    </div>
}

@section scriptBlock
{
<script type="text/javascript">
    // <![CDATA[
    $(document).ready(function () {
        var $contentTypeCategoryForm = $('#cms-js-show-content-categories');
        $contentTypeCategoryForm.fancybox({
            content: '#cms-js-content-categories',
            type: 'inline',
            autoScale: false,
            autoDimensions: true
        });
    });
    // ]]>
</script>
}